<template>
	<view class="jjhxzczdff display-flex czbj">
		<view class="xzczxereswt   flex-1">
			<!-- 	<view class="mt20 fz32">
					欢迎登录薪智直聘系统
				</view> -->
			<view class="mt40">
				<image src="../../static/img/544.gif" class="w100" mode="widthFix"></image>
			</view>

		</view>
		<view class="xzczxertet">
			<view class="pr pd">
				<!-- <view class="vertical-center">
					<image src="../../static/img/wchat.png" class="xcxcsdrxrt cz"></image>
				</view>
				<view class="cen mt20 z9 fz26">
					微信登录
				</view> -->
				<button type="primary" class="cxvtrexrt" open-type="getPhoneNumber" @getphonenumber="isndrt">手机号快捷登录</button>
			</view>
		</view>
	</view>
</template>
<script lang="ts" setup>
	import { ref } from "vue"
	import { dxrequestht, dxrequest } from "@/util/index.js"
	const isndrt = async (opt) => {
		const { data } = await dxrequestht("https://duxinggj.com/xzzp/wechar/xcx/getPhone", {
			code: opt.detail.code
		})
		const userinfo = await dxrequest("/api/user", {
			openId: uni.getStorageSync("openid"),
			mobile: data.phoneNumber
		}, "post")
		if(userinfo.code==0){
			uni.setStorageSync("userId",userinfo.data)
			uni.switchTab({
				url: '/pages/index/index'
			});
		}
		

	}
</script>

<style scoped>
	.jjhxzczdff {
		height: 100vh;
		background: #fff;
	}

	.xzczxereswt {
		font-size: 48rpx;
		text-align: center;
		padding-top: 200rpx;
	}

	.xzczxertet {
		padding-bottom: 200rpx;
	}

	.xcxcsdrxrt {
		width: 100rpx;
		height: 100rpx;
		border-radius: 50%;
	}

	.cxvtrexrt {
		
	}
</style>